package com.hx.collection;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 描述：
 *
 * @author Minghua Chen
 * @date 2021-03-28 10:50
 */
public class ConcurrentHashMapBug {

    public static void main(String[] args) {
        ConcurrentHashMap<String, Integer> map = new ConcurrentHashMap<>();
        map.computeIfAbsent("AaAa", key -> map.computeIfAbsent("BBBB", key2 -> 42));

        System.out.println(map.size());
    }
}
